pkgname=sonnet
pkgver=5.36.0
pkgrel=1
pkgdesc='Spelling framework for Qt5'
arch="all"
url='https://community.kde.org/Frameworks'
license="LGPL"
depends="qt5-qtbase"
makedepends="extra-cmake-modules qt5-qttools-dev doxygen"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"

prepare() {
	mkdir -p $srcdir/build
}

build() {
	cd $srcdir/build
	cmake "$srcdir"/${pkgname}-${pkgver} \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DKDE_INSTALL_LIBDIR=lib \
		-DBUILD_TESTING=OFF \
		-DBUILD_QCH=ON
	make
}

package() {
	cd $srcdir/build
	make DESTDIR="${pkgdir}" install
}
sha512sums="ace17eb6856982be515233037f1aa388d482d4300f07f9ec733ff740b66051d868d41cf4cfeadea221ad7bdf1caae5fb9b4b2b3e5ffe8d4e101e231f7be93f8a  sonnet-5.36.0.tar.xz"
